package com.system.goodsserver.bean;

import java.util.List;

/**
 * @author Xuheng Zhou
 * @date 2020/7/9 18:17
 * @desc
 */
public class OrderInfo {


    /**
     * orderId : 1
     * orderInfo : {"accountId":1,"couponMoney":30,"couponStartMoney":100,"freight":78,"list":[{"goodsFreight":15,"goodsId":1,"goodsName":"华为手机","goodsNewprice":5999,"goodsNumber":1,"goodsOldprice":5999,"specificationsName":"华为手机8GB+256GB","stockId":9},{"goodsFreight":15,"goodsId":2,"goodsName":"华为数据线","goodsNewprice":32,"goodsNumber":1,"goodsOldprice":32,"specificationsName":"华为数据线C型2米线","stockId":7},{"goodsFreight":12,"goodsId":3,"goodsName":"小米手机","goodsNewprice":2999,"goodsNumber":1,"goodsOldprice":3299,"specificationsName":"小米手机8GB+128GB","stockId":10},{"goodsFreight":12,"goodsId":3,"goodsName":"小米手机","goodsNewprice":2999,"goodsNumber":3,"goodsOldprice":3299,"specificationsName":"小米手机8GB+128GB","stockId":10}],"logisticsName":"邮政","ordersCreatetime":1594109769000,"ordersId":1,"ordersMoney":18075,"ordersNo":"123456","ordersOldprice":19305,"ordersState":2,"paymentMethod":1,"phone":"收件人电话","userAddressArea":1003,"userAddressCity":1002,"userAddressDetail":"华阳镇街道12号","userAddressProvince":1001,"userinfoNickname":"收件人姓名"}
     */

    private int orderId;
    private OrderInfoBean orderInfo;

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public OrderInfoBean getOrderInfo() {
        return orderInfo;
    }

    public void setOrderInfo(OrderInfoBean orderInfo) {
        this.orderInfo = orderInfo;
    }

    public static class OrderInfoBean {
        /**
         * accountId : 1
         * couponMoney : 30.0
         * couponStartMoney : 100.0
         * freight : 78.0
         * list : [{"goodsFreight":15,"goodsId":1,"goodsName":"华为手机","goodsNewprice":5999,"goodsNumber":1,"goodsOldprice":5999,"specificationsName":"华为手机8GB+256GB","stockId":9},{"goodsFreight":15,"goodsId":2,"goodsName":"华为数据线","goodsNewprice":32,"goodsNumber":1,"goodsOldprice":32,"specificationsName":"华为数据线C型2米线","stockId":7},{"goodsFreight":12,"goodsId":3,"goodsName":"小米手机","goodsNewprice":2999,"goodsNumber":1,"goodsOldprice":3299,"specificationsName":"小米手机8GB+128GB","stockId":10},{"goodsFreight":12,"goodsId":3,"goodsName":"小米手机","goodsNewprice":2999,"goodsNumber":3,"goodsOldprice":3299,"specificationsName":"小米手机8GB+128GB","stockId":10}]
         * logisticsName : 邮政
         * ordersCreatetime : 1594109769000
         * ordersId : 1
         * ordersMoney : 18075.0
         * ordersNo : 123456
         * ordersOldprice : 19305.0
         * ordersState : 2
         * paymentMethod : 1
         * phone : 收件人电话
         * userAddressArea : 1003
         * userAddressCity : 1002
         * userAddressDetail : 华阳镇街道12号
         * userAddressProvince : 1001
         * userinfoNickname : 收件人姓名
         */

        private int accountId;
        private double couponMoney;
        private double couponStartMoney;
        private double freight;
        private String logisticsName;
        private long ordersCreatetime;
        private int ordersId;
        private double ordersMoney;
        private String ordersNo;
        private double ordersOldprice;
        private int ordersState;
        private int paymentMethod;
        private String phone;
        private int userAddressArea;
        private int userAddressCity;
        private String userAddressDetail;
        private int userAddressProvince;
        private String userinfoNickname;
        private List<ListBean> list;

        public int getAccountId() {
            return accountId;
        }

        public void setAccountId(int accountId) {
            this.accountId = accountId;
        }

        public double getCouponMoney() {
            return couponMoney;
        }

        public void setCouponMoney(double couponMoney) {
            this.couponMoney = couponMoney;
        }

        public double getCouponStartMoney() {
            return couponStartMoney;
        }

        public void setCouponStartMoney(double couponStartMoney) {
            this.couponStartMoney = couponStartMoney;
        }

        public double getFreight() {
            return freight;
        }

        public void setFreight(double freight) {
            this.freight = freight;
        }

        public String getLogisticsName() {
            return logisticsName;
        }

        public void setLogisticsName(String logisticsName) {
            this.logisticsName = logisticsName;
        }

        public long getOrdersCreatetime() {
            return ordersCreatetime;
        }

        public void setOrdersCreatetime(long ordersCreatetime) {
            this.ordersCreatetime = ordersCreatetime;
        }

        public int getOrdersId() {
            return ordersId;
        }

        public void setOrdersId(int ordersId) {
            this.ordersId = ordersId;
        }

        public double getOrdersMoney() {
            return ordersMoney;
        }

        public void setOrdersMoney(double ordersMoney) {
            this.ordersMoney = ordersMoney;
        }

        public String getOrdersNo() {
            return ordersNo;
        }

        public void setOrdersNo(String ordersNo) {
            this.ordersNo = ordersNo;
        }

        public double getOrdersOldprice() {
            return ordersOldprice;
        }

        public void setOrdersOldprice(double ordersOldprice) {
            this.ordersOldprice = ordersOldprice;
        }

        public int getOrdersState() {
            return ordersState;
        }

        public void setOrdersState(int ordersState) {
            this.ordersState = ordersState;
        }

        public int getPaymentMethod() {
            return paymentMethod;
        }

        public void setPaymentMethod(int paymentMethod) {
            this.paymentMethod = paymentMethod;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public int getUserAddressArea() {
            return userAddressArea;
        }

        public void setUserAddressArea(int userAddressArea) {
            this.userAddressArea = userAddressArea;
        }

        public int getUserAddressCity() {
            return userAddressCity;
        }

        public void setUserAddressCity(int userAddressCity) {
            this.userAddressCity = userAddressCity;
        }

        public String getUserAddressDetail() {
            return userAddressDetail;
        }

        public void setUserAddressDetail(String userAddressDetail) {
            this.userAddressDetail = userAddressDetail;
        }

        public int getUserAddressProvince() {
            return userAddressProvince;
        }

        public void setUserAddressProvince(int userAddressProvince) {
            this.userAddressProvince = userAddressProvince;
        }

        public String getUserinfoNickname() {
            return userinfoNickname;
        }

        public void setUserinfoNickname(String userinfoNickname) {
            this.userinfoNickname = userinfoNickname;
        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public static class ListBean {
            /**
             * goodsFreight : 15.0
             * goodsId : 1
             * goodsName : 华为手机
             * goodsNewprice : 5999.0
             * goodsNumber : 1
             * goodsOldprice : 5999.0
             * specificationsName : 华为手机8GB+256GB
             * stockId : 9
             */

            private double goodsFreight;
            private int goodsId;
            private String goodsName;
            private double goodsNewprice;
            private int goodsNumber;
            private double goodsOldprice;
            private String specificationsName;
            private int stockId;

            public double getGoodsFreight() {
                return goodsFreight;
            }

            public void setGoodsFreight(double goodsFreight) {
                this.goodsFreight = goodsFreight;
            }

            public int getGoodsId() {
                return goodsId;
            }

            public void setGoodsId(int goodsId) {
                this.goodsId = goodsId;
            }

            public String getGoodsName() {
                return goodsName;
            }

            public void setGoodsName(String goodsName) {
                this.goodsName = goodsName;
            }

            public double getGoodsNewprice() {
                return goodsNewprice;
            }

            public void setGoodsNewprice(double goodsNewprice) {
                this.goodsNewprice = goodsNewprice;
            }

            public int getGoodsNumber() {
                return goodsNumber;
            }

            public void setGoodsNumber(int goodsNumber) {
                this.goodsNumber = goodsNumber;
            }

            public double getGoodsOldprice() {
                return goodsOldprice;
            }

            public void setGoodsOldprice(double goodsOldprice) {
                this.goodsOldprice = goodsOldprice;
            }

            public String getSpecificationsName() {
                return specificationsName;
            }

            public void setSpecificationsName(String specificationsName) {
                this.specificationsName = specificationsName;
            }

            public int getStockId() {
                return stockId;
            }

            public void setStockId(int stockId) {
                this.stockId = stockId;
            }
        }
    }
}
